projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e63d94
)
inspector: Avoid a crash
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 6 Jun 2014 01:08:56 +0000
(21:08 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 6 Jun 2014 01:08:56 +0000
(21:08 -0400)
An unset action-name should not cause us to crash.
gtk/inspector/prop-editor.c
patch
|
blob
|
history
diff --git
a/gtk/inspector/prop-editor.c
b/gtk/inspector/prop-editor.c
index 752caeca995d83a9c8892acdc971fe822fbdcbd6..8a13b3fe136e98068e91658a7ee859534bd448ac 100644
(file)
--- a/
gtk/inspector/prop-editor.c
+++ b/
gtk/inspector/prop-editor.c
@@
-1222,6
+1222,9
@@
find_action_owner (GtkActionable *actionable)
GActionGroup *group;
full_name = gtk_actionable_get_action_name (actionable);
+ if (!full_name)
+ return NULL;
+
dot = strchr (full_name, '.');
prefix = g_strndup (full_name, dot - full_name);
name = dot + 1;